//
//  CommentTableViewCell.m
//  TextApplication
//
//  Created by dllo on 16/9/5.
//  Copyright © 2016年 yh. All rights reserved.
//

#import "CommentTableViewCell.h"
#import "TAMacro.h"


@implementation CommentTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _userImageView = [[UIImageView alloc] init];
        _userNameLabel = [[UILabel alloc] init];
        _commentLabel = [[UILabel alloc] init];
        _dataLabel = [[UILabel alloc] init];
    }
    return self;
}

- (void)layoutSubviews {
    [super layoutSubviews];
    self.contentView.backgroundColor = [UIColor colorWithWhite:0.227 alpha:1.000];
    _userImageView.frame = CGRectMake(5, 5, 60, 60);
    [self.contentView addSubview:self.userImageView];
    
    _userNameLabel.frame = CGRectMake(70, 5, CONTENTWIDTH - 75, 25);
    _userNameLabel.textColor = [UIColor colorWithRed:0.178 green:0.455 blue:0.810 alpha:1.000];
    [self.contentView addSubview:self.userNameLabel];
    
    _commentLabel.frame = CGRectMake(70, 35, CONTENTWIDTH - 75, 25);
    _commentLabel.font = [UIFont systemFontOfSize:15];
    _commentLabel.textColor = [UIColor whiteColor];
    [self.contentView addSubview:self.commentLabel];
    
    _dataLabel.frame = CGRectMake(70, 70, CONTENTWIDTH - 75, 25);
    _dataLabel.textColor = [UIColor whiteColor];
    _dataLabel.font = [UIFont systemFontOfSize:12];
    [self.contentView addSubview:self.dataLabel];

}



- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
